
<%@ page import="org.bjou.UserBaseinfo" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="pertho">
  <g:set var="entityName" value="${message(code: 'userBaseinfo.label', default: 'UserBaseinfo')}" />
  <title><g:message code="default.show.label" args="[entityName]" /></title>

  <script>
$(document).ready(function() {
$("#tabs").tabs();
});
  </script>     
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="twelve columns">
        <div id="tabs">

          <ul>
            <li><a href="#tabs-1">
                个人信息 </a>
            </li>
            <li><a href="#tabs-2">
                最高学历 </a>
            </li>
            <li><a href="#tabs-3">
                工作履历 </a>
            </li>
            <li><a href="#tabs-4">
                附件 </a>
            </li>
          </ul>


          <!-- 个人信息开始 -->
          <div id="tabs-1">



            <!-- start-->
            <div id="edit-userBaseinfo" class="content scaffold-edit" role="main">
              <g:if test="${flash.message}">
                <div class="message" role="status">${flash.message}</div>
              </g:if>
              <g:hasErrors bean="${userBaseinfoInstance}">
                <ul class="errors" role="alert">
                  <g:eachError bean="${userBaseinfoInstance}" var="error">
                    <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
                  </g:eachError>
                </ul>
              </g:hasErrors>

              <g:hiddenField name="id" value="${userBaseinfoInstance?.id}" />
              <g:hiddenField name="version" value="${userBaseinfoInstance?.version}" />
              <ol class="property-list userBaseinfo">
                  <div class="box_c">
                    <li class="fieldcontain">
                      <span id="fullname-label" class="property-label">
                        <g:message code="userBaseinfo.fullname.label" default="Fullname" /></span>

                      <span class="property-value" aria-labelledby="fullname-label"><g:fieldValue bean="${userBaseinfoInstance}" field="fullname"/></span>

                    </li>

                    <g:if test="${userBaseinfoInstance?.avatar}">  
                      <li class="fieldcontain">
                        <span id="gentle-label" class="property-label">头像</span>

                        <span class="property-value" aria-labelledby="gentle-label"> <img width="150px" height="200px" class="Photo" src="${createLink(controller:'UserBaseinfo', action:'viewImage', id:"${userBaseinfoInstance.id}")}" /></span>

                      </li>

                    </g:if>



                    <g:if test="${userBaseinfoInstance?.gentle}">
                      <li class="fieldcontain">
                        <span id="gentle-label" class="property-label"><g:message code="userBaseinfo.gentle.label" default="Gentle" /></span>

                        <span class="property-value" aria-labelledby="gentle-label"><g:fieldValue bean="${userBaseinfoInstance}" field="gentle"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.tel}">
                      <li class="fieldcontain">
                        <span id="tel-label" class="property-label"><g:message code="userBaseinfo.tel.label" default="Tel" /></span>

                        <span class="property-value" aria-labelledby="tel-label"><g:fieldValue bean="${userBaseinfoInstance}" field="tel"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.idCard}">
                      <li class="fieldcontain">
                        <span id="idCard-label" class="property-label"><g:message code="userBaseinfo.idCard.label" default="Id Card" /></span>

                        <span class="property-value" aria-labelledby="idCard-label"><g:fieldValue bean="${userBaseinfoInstance}" field="idCard"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.birthday}">
                      <li class="fieldcontain">
                        <span id="birthday-label" class="property-label"><g:message code="userBaseinfo.birthday.label" default="Birthday" /></span>

                        <span class="property-value" aria-labelledby="birthday-label"><g:fieldValue bean="${userBaseinfoInstance}" field="birthday"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.mobile}">
                      <li class="fieldcontain">
                        <span id="mobile-label" class="property-label"><g:message code="userBaseinfo.mobile.label" default="Mobile" /></span>

                        <span class="property-value" aria-labelledby="mobile-label"><g:fieldValue bean="${userBaseinfoInstance}" field="mobile"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.email}">
                      <li class="fieldcontain">
                        <span id="email-label" class="property-label"><g:message code="userBaseinfo.email.label" default="Email" /></span>

                        <span class="property-value" aria-labelledby="email-label"><g:fieldValue bean="${userBaseinfoInstance}" field="email"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.title}">
                      <li class="fieldcontain">
                        <span id="title-label" class="property-label"><g:message code="userBaseinfo.title.label" default="Title" /></span>

                        <span class="property-value" aria-labelledby="title-label"><g:fieldValue bean="${userBaseinfoInstance}" field="title"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.proTitle}">
                      <li class="fieldcontain">
                        <span id="proTitle-label" class="property-label"><g:message code="userBaseinfo.proTitle.label" default="Pro Title" /></span>

                        <span class="property-value" aria-labelledby="proTitle-label"><g:fieldValue bean="${userBaseinfoInstance}" field="proTitle"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.companyName}">
                      <li class="fieldcontain">
                        <span id="companyName-label" class="property-label"><g:message code="userBaseinfo.companyName.label" default="Company Name" /></span>

                        <span class="property-value" aria-labelledby="companyName-label"><g:fieldValue bean="${userBaseinfoInstance}" field="companyName"/></span>

                      </li>
                    </g:if>

                    

                    <g:if test="${userBaseinfoInstance?.userGroup}">
                      <li class="fieldcontain">
                        <span id="userGroup-label" class="property-label"><g:message code="userBaseinfo.userGroup.label" default="User Group" /></span>

                        <span class="property-value" aria-labelledby="userGroup-label"><g:fieldValue bean="${userBaseinfoInstance}" field="userGroup.groupName"/>
                        </span>

                      </li>
                    </g:if>

                 </div>
              </ol>


                  </div>
            
          </div>
                  <!-- 个人信息结束 -->
                  <!-- 最高学历开始 -->
                  <div id="tabs-2">
                    
                    <ol class="property-list userBaseinfo">
                      <div class="box_c">
                        
                        
                        

                    <g:if test="${userBaseinfoInstance?.beginMonth}">
                      <li class="fieldcontain">
                         <span id="beginMonth-label" class="property-label">开始时间</span>

                        <span class="property-value" aria-labelledby="beginMonth-label">${userBaseinfoInstance.beginYear} 年 ${userBaseinfoInstance.beginMonth} 月</span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.endYear}">
                      <li class="fieldcontain">
                        <span id="endYear-label" class="property-label">结束时间</span>

                        <span class="property-value" aria-labelledby="endYear-label">${userBaseinfoInstance.endYear} 年 ${userBaseinfoInstance.endMonth} 月</span>

                      </li>
                    </g:if>

                   

                    <g:if test="${userBaseinfoInstance?.school}">
                      <li class="fieldcontain">
                        <span id="school-label" class="property-label"><g:message code="userBaseinfo.school.label" default="School" /></span>

                        <span class="property-value" aria-labelledby="school-label"><g:fieldValue bean="${userBaseinfoInstance}" field="school"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.degree}">
                      <li class="fieldcontain">
                        <span id="degree-label" class="property-label"><g:message code="userBaseinfo.degree.label" default="Degree" /></span>

                        <span class="property-value" aria-labelledby="degree-label"><g:fieldValue bean="${userBaseinfoInstance}" field="degree"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.majorName}">
                      <li class="fieldcontain">
                        <span id="majorName-label" class="property-label"><g:message code="userBaseinfo.majorName.label" default="Major Name" /></span>

                        <span class="property-value" aria-labelledby="majorName-label"><g:fieldValue bean="${userBaseinfoInstance}" field="majorName"/></span>

                      </li>
                    </g:if>

                    <g:if test="${userBaseinfoInstance?.majorDscp}">
                      <li class="fieldcontain">
                        <span id="majorDscp-label" class="property-label"><g:message code="userBaseinfo.majorDscp.label" default="Major Dscp" /></span>

                        <span class="property-value" aria-labelledby="majorDscp-label"><g:fieldValue bean="${userBaseinfoInstance}" field="majorDscp"/></span>

                      </li>
                    </g:if>

                        
                        
                        
                      </div>
                    </ol>
                  


                    



                   
                  </div>
                  <!-- 最高学历结束 -->
                  <!-- 工作履历开始 -->
                  <div id="tabs-3">



                    <div class="box_c">
                      <table><tbody>
                        <thead>
                          <tr>
                            <td>开始时间</td>
                            <td>结束时间</td>
                            <td>公司名称</td>
                            <td>职位信息</td>
                          
                          </tr>
                        <g:each in="${userResumes?}" var="q" status="i">


                          <tr title="${q.jobDscp}" class="${(i % 2) == 0 ? 'even' : 'odd'}">

                            <td>${q.beginYear}/${q.beginMonth}</td>
                            <td>${q.endYear}/${q.endMonth}</td>

                            <td>${q.companyName}</td>

                            <td>${q.jobTitle}</td>
                          

                          </tr>
                        </g:each>
                        </tbody>
                      </table>




                    </div>
                  </div>
                  <!-- 工作履历结束 -->
                  <!-- 附件开始 -->
                  <div id="tabs-4">




                    <div class="box_c">
                      <table><tbody>
                        <thead>
                          <tr>
                            <td>附件名称</td>

                            <td>操作</td>
                          </tr>
                        <g:each in="${userAttachs?}" var="q" status="i">


                          <tr title="${q.fileDscp}" class="${(i % 2) == 0 ? 'even' : 'odd'}">

                            <td>${q.fileName}</td>


                            <td><a class="gh_button" target="_blank" href="${createLink(uri: '/')}${q.fileUrl}">下载</a>
                          <g:link controller="UserResume"  class="gh_button" action="delete" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"  id="${q.id}">${message(code: 'default.button.delete.label', default: 'delete')}</g:link>
                          </td>

                          </tr>
                        </g:each>
                        </tbody>
                      </table>




                    </div> 


                  </div>
                  <!-- 附件结束 -->

                  </div>

                  <!--111 -->


 <g:form>
                          <fieldset class="buttons">
                            <g:hiddenField name="id" value="${userBaseinfoInstance?.id}" />
                            <g:if test="${userBaseinfoInstance?.user.id==session.user.id}">
                              <g:link class="gh_button" action="edit" id="${userBaseinfoInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
                            </g:if>
                            <a href="#" onclick="javascript:history.back(-1);return false;" class="gh_button list">返回</a>
                          </fieldset>
                        </g:form>









                  </div>
                  </div>
                  </body>
                  </html>
